﻿using Core.Info;
using Entity.Core;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Runtime.InteropServices;

/*
 * @生成日期 : 2022-11-10
 * @生成说明 : 应用配置
 */
namespace Entity.Core.Base
{
    /// <summary>
    /// 应用配置 , 表： app_config
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(Name = "app_config")]
    //[Index($"uk_app_config_sid", "sid", true)]
    public class AppConfigEntity : BaseEntity
    {

        #region 机构名称

        /// <summary>
        /// 机构名称
        /// </summary>
        [JsonProperty("org_name", Order = 2)]
        [Column(Name = "org_name", StringLength = 255, Position = 2)]
        [Display(Name = "机构名称")]
        public virtual string? OrgName { get; set; }

        #endregion 机构名称

        #region 机构编码

        /// <summary>
        /// 机构编码
        /// </summary>
        [JsonProperty("org_code", Order = 3)]
        [Column(Name = "org_code", StringLength = 255, Position = 3)]
        [Display(Name = "机构编码")]
        public virtual string? OrgCode { get; set; }

        #endregion 机构编码

        #region api地址

        /// <summary>
        /// api地址
        /// </summary>
        [JsonProperty("api_address", Order = 4)]
        [Column(Name = "api_address", StringLength = 255, Position = 4)]
        [Display(Name = "api地址")]
        public virtual string? ApiAddress { get; set; }

        #endregion api地址

        #region app_id

        /// <summary>
        /// app_id
        /// </summary>
        [JsonProperty("app_id", Order = 5)]
        [Column(Name = "app_id", StringLength = 255, Position = 5)]
        [Display(Name = "app_id")]
        public virtual string? AppId { get; set; }

        #endregion app_id

        #region app_key

        /// <summary>
        /// app_key
        /// </summary>
        [JsonProperty("app_key", Order = 6)]
        [Column(Name = "app_key", StringLength = 255, Position = 6)]
        [Display(Name = "app_key")]
        public virtual string? AppKey { get; set; }

        #endregion app_key

        #region app_security

        /// <summary>
        /// app_security
        /// </summary>
        [JsonProperty("app_security", Order = 7)]
        [Column(Name = "app_security", StringLength = 255, Position = 7)]
        [Display(Name = "app_security")]
        public virtual string? AppSecurity { get; set; }

        #endregion app_security

        #region 令牌

        /// <summary>
        /// 令牌
        /// </summary>
        [JsonProperty("token", Order = 8)]
        [Column(Name = "token", StringLength = 255, Position = 8)]
        [Display(Name = "令牌")]
        public virtual string? Token { get; set; }

        #endregion 令牌

    }
}